<@master template="master/master-loan" title="新增客户推荐信息">
<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>

<div class="detailsBox">

		<div class="action-ajax-load"
			data-url="<@url value='/rrecommend/detail?id=${o2oRecommendEntity.id}' />">
			<p class="onload"></p>
		</div>
		
		<div class="openBox">
				<h3 class="mt20">
				<i class="jtIco1"></i>客户推荐流程
				</h3>
					<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${o2oRecommendEntity.id}&amp;processType=RECOMMEND_REFUND' domain='o2o.admin.workflow'/>"  style="display: none" >审核历史加载中。。。</div>
		</div>
		
			<div class=" mtb20 tac">
				<table  border="0" cellpadding="0" cellspacing="0" width="100%">
	 		<tr>
             <td >
             <#if o2oRecommendEntity?? && o2oRecommendEntity.isType=='Y'><!-- ??是否为空,不为空则执行 -->
	             <#if o2oRecommendEntity.billStatus=="NEW" || o2oRecommendEntity.billStatus=="BH" ><!-- 启动流程按钮 -->
	            	<#list buttons as button>
					<#if button.permissionCode??>
						<@permission permissionName="${button.permissionCode}">
							<#if button.type='AJAX'>
							<a href="<@url value='${button.url}'/>" class="btn_auto_30 btn_blue action-ajax-btn">${button.title}</a>
							</#if>
							<#if button.type='REDIRECT'>
							<a href="<@url value='${button.url}'/>" class="btn_auto_30 btn_blue">${button.title}</a>
							</#if>
							<#if button.type='OPEN'>
							<a href="<@url value='${button.url}'/>" class="btn_auto_30 btn_blue" target="_blank">${button.title}</a>
							</#if>
							<#if button.type='AJAX_CONFIRM'>
							<a href="<@url value='${button.url}'/>" class="btn_auto_30 btn_blue action-ajax-btn-confirm" action-ajax-form-confirm-message="${button.confirmMessage}">${button.title}</a>
							</#if>
						</@permission>
					</#if>
					</#list>
	            	 <@permission permissionName="editRecommend"> 
	            		<a href="<@url value='/recommend/search?id=${o2oRecommendEntity.id}'/>" class="btn_auto_30 btn_blue">编辑</a>
	            	 </@permission>
	            </#if>
	            
	             <@permission permissionName="loanManageZFRecommend"> 
	            		 <a href="<@url value='${ZFBtn.url}'/>" class="btn_auto_30 btn_blue action-ajax-btn-confirm" action-ajax-form-confirm-message="${ZFBtn.confirmMessage}">${ZFBtn.title}</a>
	             </@permission>
	           
            </#if>
            </td>
         </tr>
	 </table>
			</div>
			
</div>

</@master>
